body,
html {
    margin: 0;
    padding: 0;
    min-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    font-family: "PingFang SC", "Microsoft Yahei", Helvetica, Arial, sans-serif;
}

.prePage {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nextPage {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.optPageText {
    svg {
        width: 50px;
        height: 50px;

        path {
            fill: transparent;
        }
    }
}

.showOptPage {
    background-color: rgba(245, 245, 245, 0.2);
    /* 对背景进行模糊处理 */
    backdrop-filter: blur(1px);

    .optPageText {
        svg path {
            fill: rgba(245, 245, 245, 0.6);
        }
    }
}

.app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.app::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--app-background-image);
    filter: brightness(var(--app-background-image-brightness));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.other-div {
}

.search-div {
    width: 600px;
    height: 52px;
    padding: 0 20px;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.search-input {
    flex: 1;
    width: 500px;
    height: 100%;
    padding: 0 0 0 15px;
    border: none;
    border-left: 1px solid #dddddd;
    font-size: 18px;
    outline: none;
}

.search-icon-left {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.search-icon-right {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.nav-div {
    width: 100%;
    display: flex;
    overflow-y: hidden;
    overflow-x: auto;
}

.page {
    width: calc(100% - 300px);
    margin: 0 150px;
    flex-shrink: 0; /* 禁止被压缩 */
    display: flex;
    justify-content: center;
}

.list {
    width: calc(var(--grid-item-width) * var(--grid-template-columns));
    height: calc(var(--grid-item-height) * var(--grid-template-rows));
    padding: 30px 0 20px;
    display: grid;
    grid-template-rows: repeat(var(--grid-template-rows), 1fr);
    grid-template-columns: repeat(var(--grid-template-columns), 1fr);
    overflow: hidden;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
    will-change: width, height;
}

.item {
    width: var(--grid-item-width);
    height: var(--grid-item-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--grid-item-content-gap);
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
    will-change: width, height;
}

.dragging {
    opacity: 0.2;
}

.item-icon-div {
    width: calc(var(--grid-item-icon-width) * 1.8);
    height: calc(var(--grid-item-icon-width) * 1.8);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
    will-change: width, height;
}

.item-icon {
    width: var(--grid-item-icon-width);
    height: var(--grid-item-icon-width);
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
    will-change: width, height;
}

.item-text {
    width: calc(var(--grid-item-width) - 20px);
    font-size: var(--grid-item-text-size);
    display: var(--grid-item-text-show);
    color: #ffffff;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: font-size 0.3s ease-in-out;
}

.diandiandian {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.dian {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.active {
    background: rgb(255, 79, 128);
}

.item-menu {
    position: absolute;
    padding: 10px 0;
    background-color: #f1f1f1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
    gap: 10px;
}

.menu-item {
    width: 120px;
    padding: 5px 20px;
    font-size: 13px;
    color: #333;
}

.menu-item:hover {
    background-color: #dedede;
    cursor: pointer;
}

.setting, .editing {
    position: absolute;
    padding: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    visibility: hidden;
    overflow: hidden;
}

.setting-page, .editing-page {
    position: absolute;
    top: 0;
    right: 0;
    /*width: 420px;*/
    width: 0;
    height: calc(100% - 60px);
    padding: 30px 0 30px;
    background: #f5f5f5;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    overflow-y: scroll;
    /* 平滑过渡效果 */
    transition: all 0.3s ease-in-out;
}

.setting-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.setting-item {
    width: calc(100% - 80px);
    padding: 15px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.item-title {
    font-size: 16px;
}

.item-value {
    width: 100%;
    font-size: 14px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

/* setting start */
.opt-Btn {
    height: 32px;
    padding: 0 20px;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
}

.export-Btn {
    background: rgba(234, 76, 76, 1);
}

.import-Btn {
    background: rgba(0, 128, 0, 0.9);
}

.item-group-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;

    label {
        font-size: 15px;
        cursor: pointer;
    }
}

input[type="radio"] {
    margin: 0;
    accent-color: #007bff;
    cursor: pointer;
}

input[type="radio"]:checked + label {
    color: #007bff;
}

/* 1. 统一轨道颜色（全部实心） */
input[type="range"].setting-solid {
    -webkit-appearance: none;
    appearance: none;
    width: calc(100% - 70px);
    height: 4px;
    background: #007bff;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

/* 2. 滑块样式（可选） */
input[type="range"].setting-solid::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #007bff;
}

input[type="range"].setting-solid::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.tip-msg {
    width: calc(100% - 80px);
    font-size: 12px;
    color: red;
}

/* editing start */
.editing-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
}

.editing-item {
    width: calc(100% - 100px);
    padding: 15px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
}

.input_web_item {
    width: 100%;
    height: 32px;
    line-height: 32px;
    font-size: 16px;
    padding: 0 5px;
    background: #f5f5f5;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
}

.btn-group {
    margin-top: 50px;
    width: 100%;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}